/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gametheory;

/**
 *
 * @author 3mara
 */
public class AssignmentPair implements Comparable<AssignmentPair> {

    int cameraID = 0;
    double utility = 0;

    public AssignmentPair(int cameraID, double utility) {
        this.cameraID = cameraID;
        this.utility = utility;
    }

    public int compareTo(AssignmentPair o) {
        if (this.utility > o.utility) {
            return -1;
        } else if (this.utility < o.utility) {
            return 1;
        } else {
            return 0;
        }
    }
}
